package com.wish.g1.finance.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 收房贷申请明细
 * </p>
 *
 * @author wxh
 * @since 2022-11-18
 */
@TableName("tb_sf_loan_detail")
public class SfLoanDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 收房贷申请ID
     */
    private Long sfLoanId;

    /**
     * 商户ID
     */
    private Long businessId;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 部门编号
     */
    private String deptNo;

    /**
     * 房产编号
     */
    private String houseId;

    /**
     * 房产信息(考虑在房产表中增加house_name，然后带出)
     */
    private String houseName;

    /**
     * 房产编号
     */
    private String houseNo;

    /**
     * 账期还款金额
     */
    private BigDecimal repaymentAmount;

    /**
     * 本金
     */
    private BigDecimal capital;

    /**
     * 账期利息
     */
    private BigDecimal rateAmount;

    /**
     * 第几期
     */
    private Integer payNumber;

    /**
     * 借款账期开始日‘yyyymmdd’
     */
    private LocalDateTime loStartTime;

    /**
     * 借款账期截止日'yyyymmdd'
     */
    private LocalDateTime loEndTime;

    /**
     * 删除标识 0:未删除，1:删除
     */
    private Boolean delFlg;

    /**
     * 创建用户ID
     */
    private Long createUserid;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新用户ID
     */
    private Long updateUserid;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getSfLoanId() {
        return sfLoanId;
    }

    public void setSfLoanId(Long sfLoanId) {
        this.sfLoanId = sfLoanId;
    }
    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }
    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
    public String getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo;
    }
    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }
    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }
    public String getHouseNo() {
        return houseNo;
    }

    public void setHouseNo(String houseNo) {
        this.houseNo = houseNo;
    }
    public BigDecimal getRepaymentAmount() {
        return repaymentAmount;
    }

    public void setRepaymentAmount(BigDecimal repaymentAmount) {
        this.repaymentAmount = repaymentAmount;
    }
    public BigDecimal getCapital() {
        return capital;
    }

    public void setCapital(BigDecimal capital) {
        this.capital = capital;
    }
    public BigDecimal getRateAmount() {
        return rateAmount;
    }

    public void setRateAmount(BigDecimal rateAmount) {
        this.rateAmount = rateAmount;
    }
    public Integer getPayNumber() {
        return payNumber;
    }

    public void setPayNumber(Integer payNumber) {
        this.payNumber = payNumber;
    }
    public LocalDateTime getLoStartTime() {
        return loStartTime;
    }

    public void setLoStartTime(LocalDateTime loStartTime) {
        this.loStartTime = loStartTime;
    }
    public LocalDateTime getLoEndTime() {
        return loEndTime;
    }

    public void setLoEndTime(LocalDateTime loEndTime) {
        this.loEndTime = loEndTime;
    }
    public Boolean getDelFlg() {
        return delFlg;
    }

    public void setDelFlg(Boolean delFlg) {
        this.delFlg = delFlg;
    }
    public Long getCreateUserid() {
        return createUserid;
    }

    public void setCreateUserid(Long createUserid) {
        this.createUserid = createUserid;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Long getUpdateUserid() {
        return updateUserid;
    }

    public void setUpdateUserid(Long updateUserid) {
        this.updateUserid = updateUserid;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SfLoanDetail{" +
            "id=" + id +
            ", sfLoanId=" + sfLoanId +
            ", businessId=" + businessId +
            ", deptId=" + deptId +
            ", deptNo=" + deptNo +
            ", houseId=" + houseId +
            ", houseName=" + houseName +
            ", houseNo=" + houseNo +
            ", repaymentAmount=" + repaymentAmount +
            ", capital=" + capital +
            ", rateAmount=" + rateAmount +
            ", payNumber=" + payNumber +
            ", loStartTime=" + loStartTime +
            ", loEndTime=" + loEndTime +
            ", delFlg=" + delFlg +
            ", createUserid=" + createUserid +
            ", createTime=" + createTime +
            ", updateUserid=" + updateUserid +
            ", updateTime=" + updateTime +
        "}";
    }
}
